const webpack = require('webpack');
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const EncodingPlugin = require('webpack-encoding-plugin');

module.exports = merge(common, {
  mode: 'production',
  plugins: [
    new webpack.BannerPlugin({
      banner:
        `Sketchbook 0.4 (https://github.com/swift502/Sketchbook)\nBuilt on three.js (https://github.com/mrdoob/three.js) and cannon.js (https://github.com/schteppe/cannon.js)`,
    }),
    new EncodingPlugin({
      encoding: 'utf-8'
    })
  ]
});